Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for child tables display error #241

Merged
merged 5 commits into from
Oct 11, 2023
Merged

Fix for child tables display error #241

merged 5 commits into from
Oct 11, 2023

Conversation

droberts-ctrlo
Copy link
Contributor

Issue 1351 (Brass) - not removing "no data present" on data added to child table (and adding it again after all child data is removed).

let element = $(this)
if(!element.is(":hidden")) {
element.toggle();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, please try replacing all this with hide()

if(parent && parent.children().length==1) {
const child = parent.children('.odd').children('.dataTables_empty');
if(child.is(':hidden')) {
child.show();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider simplifying with parent.find('.dataTables_empty').show()

@abeverley abeverley merged commit 18a0d1a into ctrlo:uiux Oct 11, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants